import React from 'react';
import HighCharts from './highcharts';

export default class SurveyResult extends React.Component{
    constructor(props, context) {
        super(props, context)
    }
    render(){
        return( 
            <div className="survey-result-container">
                {this.props.surveyResult.map((result) => <HighCharts key={result.Id.toString()} surveyResult={result} />)}
            </div>
        );
    }
}